package com.rr.sandbox;

/**
 * @author : RENBIAO
 * @createTime : 2022/2/10 10:41
 */
public class Test {

    public static void main(String[] args) {
        new Test().a();
    }

    public void a(){
        b();
    }

    public void b(){
        a();
    }

   /*
   运行结果如下：循环来回调用，栈溢出了
      Exception in thread "main" java.lang.StackOverflowError
        at com.rr.sandbox.Test.a(Test.java:14)
        at com.rr.sandbox.Test.b(Test.java:18)
        at com.rr.sandbox.Test.a(Test.java:14)
        at com.rr.sandbox.Test.b(Test.java:18)
        .........
    */
}
